import { createRouter, createWebHashHistory } from "vue-router";
export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/", redirect: "/home"
        },
        {
            path: '/home', component: () => import("@/views/home/home.vue"),

        },
        {
            path: '/favor', component: () => import("@/views/favor/favor.vue")
        },
        {
            path: '/order', component: () => import("@/views/order/order.vue")
        },
        {
            path: '/profile', component: () => import("@/views/profile/profile.vue")
        },
        {
            path: '/city', component: () => import("@/views/city/city.vue"),
            meta: {
                // 定义是否显示TabBar
                hideTabBar: true
            }
        },
        {
            path: '/search', component: () => import("@/views/search/search.vue"),
            meta: {
                hideTabBar: true
            }
        },
        {
            path: '/detail/:id/:productPrice/:finalPrice', component: () => import("@/views/detail/detail.vue"),
        }
    ]
})